<template>
    <div class="home-container">
        <div class="build_content">
            <el-table :data="tableData" style="width: 100%" height="320" border>
                <el-table-column fixed prop="title" label="楼宇号" width="150">
                </el-table-column>
                <el-table-column prop="id" label="负责人姓名" width="120">
                </el-table-column>
                <el-table-column prop="status" label="性别" width="120">
                </el-table-column>
                <el-table-column prop="pubdate" label="联系电话" width="300">
                </el-table-column>
                <el-table-column fixed="right" label="操作" width="220">
                    <template slot-scope="scope">
                        <el-button size="mini" type="danger" icon="el-icon-delete"
                            @click="delBulid((scope.row.bulid_id))">删除
                        </el-button>
                    </template>
                </el-table-column>
            </el-table>
        </div>
        <div class="build_foot">
            <el-pagination layout="  prev, pager, next, sizes, jumper" :page-sizes="[5, 10]" :page-size="5"
                :total="tableData.length" :pager-count="5" :current-page="1"
              >
            </el-pagination>
        </div>
    </div>
    </div>
</template>
<script>
import { reqGetUserList } from '@/api/index'
import { getArticles } from '@/api/article'
export default {
    name: 'HomeIndex',
    data() {
        return {
            tableData:[]
        }
    },
    mounted() {
        reqGetUserList().then((res) => {
            console.log(res.data);
        })
    },
    created() {
        getArticles().then((res) => {
            console.log(res.data);
            this.tableData.push(res.data);
        })
    },
}

</script>